//
//  AppDelegate.swift
//  Rhythm_SinaWeibo
//
//  Created by Mr.Rhythm on 9/21/15.
//  Copyright © 2015 Mr.Rhythm. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        // Override point for customization after application launch.
        
        //1.初始化SDK
        FaceppAPI.initWithApiKey("1497fc91cb0deebe244c38e9895dedfd", andApiSecret: "YrdRpuIhlcyn8EgKzB_6vjoDuyNVL8a_", andRegion: APIServerRegionCN)
        
        //2.设置调试模式
        FaceppAPI.setDebugMode(true)
        
        // 设置尺寸
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        
        // 设置背景颜色
        window?.backgroundColor = UIColor.whiteColor()
        
        // 设置根控制器
        window?.rootViewController = YTMainTableViewController()
        
        // 使其可见
        window?.makeKeyAndVisible()
        return true
    }

}

